Skip to content

Conversation

idegtiarenko
Copy link
Contributor

Before this change FROM data,index-* is successfully resolves to data index only but FROM index-* fails.
This change aligns behavior by always allowing empty index resolutions in * patterns.
Now index resolution is also consistent with GET /data,index-*/_search and GET /index-*/_search.

Related to: S2D24

@idegtiarenko idegtiarenko added >breaking Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) :Analytics/ES|QL AKA ESQL v9.2.0 labels Sep 29, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@elasticsearchmachine
Copy link
Collaborator

Hi @idegtiarenko, I've created a changelog YAML for you. Note that since this PR is labelled >breaking, you need to update the changelog YAML to fill out the extended information sections.

Copy link
Contributor

@luigidellaquila luigidellaquila left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO it makes sense.

The only thing that doesn't really make much sense to me is the result:

from nothing*
{
    "columns": [
        {
            "name": "<no-fields>",
            "type": "null"
        }
    ],
    "values": []
}

That <no-fields> could be problematic, also because it sticks there even if you add new fields with EVAL.

Since we are moving towards accepting empty plans, it would make sense to return no columns.

# Conflicts:
#	x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/plugin/IndexResolutionIT.java
@idegtiarenko idegtiarenko marked this pull request as draft October 2, 2025 06:05
@idegtiarenko
Copy link
Contributor Author

Replaced with #135826

@idegtiarenko idegtiarenko deleted the allow_empty branch October 2, 2025 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL >breaking Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants